/**
 * 命令模式 执行动作类
 */

import namespace from "../namespace";

class Command {
  constructor() { }

  execute() {
    throw "implement execute method";
  }

  canExecute() {
    return true;
  }

  redo() {
    throw "implement redo method";
  }

  undo() {
    throw "implement undo method";
  }
}

namespace.command.Command = Command;
